

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_PASSIVE_BUZZER_BLOCK_1607658367724'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let hz =  Blockly.Arduino.valueToCode(this, 'hz', Blockly.Arduino.ORDER_ATOMIC);
let sustain = this.getFieldValue('sustain');
          
            Blockly.Arduino.definitions_['include_EXT_PASSIVE_BUZZER_BLOCK_1607658367724'] = ``;
            Blockly.Arduino.definitions_['define_EXT_PASSIVE_BUZZER_BLOCK_1607658367724'] = `#define buzzer_pin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_PASSIVE_BUZZER_BLOCK_1607658367724'] = `pinMode(buzzer_pin${pin}, OUTPUT);`;
             return  `tone(buzzer_pin${pin},${hz},${sustain});\r\n`;
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        